﻿<UserControl x:Class="SimpleDbBrowser.View.Views.BrowsingView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
             d:DesignHeight="100" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <Label 
            Grid.Row="0" Grid.Column="0"
            Content="Domains"
            />
        
        <ListBox 
            x:Name="Domains"
            Grid.Row="1"
            Grid.Column="0"
            ItemsSource="{Binding Domains}"
            SelectedItem="{Binding SelectedDomain, Mode=TwoWay}"
            />
        
        <GridSplitter
            Grid.Row="1"
            Grid.Column="1"
            Width="5"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Stretch"
            />
        
        <Label 
            Grid.Row="0"
            Grid.Column="2"
            Content="Items and attributes"
            />

        <ListView 
            x:Name="ItemsTable"
            Grid.Row="1" Grid.Column="2"
            ItemsSource="{Binding Items}"
            >
            <ListView.View>
                <GridView AllowsColumnReorder="True" >
                </GridView>
            </ListView.View>
        </ListView>

    </Grid>
</UserControl>
